package edu.xcdq;

import java.util.Scanner;

public class ClickRate {
    public static void main(String[] args) {
        System.out.println("迷你游戏平台>游戏点击率");
        Scanner scanner = new Scanner(System.in);
        int count = 0;
        for (int i = 0; i < 4; i++) {
            System.out.println("请输入第" + (i + 1) + "个游戏的点击率：");
            int clickRate = scanner.nextInt();
            if (clickRate < 100) {
                continue;
            }
            count++;
        }
        System.out.println("点击率大于100的游戏数是：" + count);
        System.out.println("点击率大于100的游戏所占的比例为：" + (count / 5.0) * 100 + "%");
    }
}
